const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    // 关闭eslint
    lintOnSave: false,
    devServer: {
        port: 8088,  //自定义端口号
        host: 'localhost',
        open: true, //配置浏览器自动启动
        //代理跨域
        proxy: {
            '/api': {
                // 获取数据的IP地址
                target: 'http://localhost:9091/api/v1',
                changeOrigin: true,
                pathRewrite:{'^/api':''} // 路径重写
            }
        }
    }
})
